package com.pig4cloud.pig.demo.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pig4cloud.pig.demo.feign.Entity.Announcement2;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface Announcement2Mapper extends BaseMapper<Announcement2> {

    @Update("UPDATE announcement2 SET isdel=0 WHERE aid= #{aid} and uid=#{uid} ")
    public void delAnn(
            @Param("aid") String aid,
            @Param("uid") String uid
    );

    @Update("update announcement2 SET isdel=0 WHERE  uid=#{uid}")
    public void delAll(
            @Param("uid") String uid
    );
}
